package com.baizhi.cmfz.service.impl;

import com.baizhi.cmfz.dao.MenuDao;
import com.baizhi.cmfz.entity.Menu;
import com.baizhi.cmfz.service.MenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class MenuServiceImpl implements MenuService {
    @Autowired(required = false)
    private MenuDao menuDao;
    @Override
    public List<Menu> selectMenu() {

        List<Menu> menuList = menuDao.selectMenu();
        System.out.println(menuList);
        return menuList;
    }
}
